package com.wuchao.dubbo.service;

import com.wuchao.dubbo.mapper.UserRepository;
import dao.UserDao;
import domian.User;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class UserServiceImpl implements UserDao{

    @Autowired
    private UserRepository userRepository;
    @Override
    public List<User> findAll() {
        List<User> all = userRepository.findAll();
        return all;
    }
}
